import request from '@/utils/request'

export const getCouponService = () => {
  return request.get('/order/getCouponsMessage')
}

export const delCouponService = (coupon_code) => {
  return request.get(`/order/delCouponsMessage/${coupon_code}`)
}

export const insertCouponService = (data) => {
  return request.post('/order/insertCoupon', data)
}

export const updataCouponService = (data) => {
  return request.post('/order/updataCoupon', data)
}
